import { defineStore } from "pinia"
import { ref } from "vue"

const useUserStore = defineStore('user', () => {
    //用户信息
    let userInfo = ref({});
    //token
    let token = ref("")
    //buttonPermission
    let permissButtons = ref([])
    return {
        userInfo,
        token,
        permissButtons
    }
}, {
    persist: true
})

export default useUserStore